home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 3360 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.9 KB

  1. Path: cs.uwa.edu.au!jasonb
  2. From: jasonb@cs.uwa.edu.au (Jason S Birch)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: Announce: AWeb 1.0 released!
  5. Date: 2 Apr 96 06:51:49 GMT
  6. Organization: The University of Western Australia
  7. Message-ID: <jasonb.828427909@cs.uwa.edu.au>
  8. References: <4iva78$5pa@news.xs4all.nl> <4j1f6e$984@news.uni-c.dk> <jasonb.827822336@cs.uwa.edu.au> <4j8o6r$9vj@serpens.rhein.de> <jasonb.827896888@cs.uwa.edu.au> <4jaue8$jh4@serpens.rhein.de> <jasonb.827996764@cs.uwa.edu.au> <4je3qj$kk@serpens.rhein.de> <jasonb.828076494@cs.uwa.edu.au> <4jgdfr$8f4@serpens.rhein.de> <jasonb.828104646@cs.uwa.edu.au> <4jh986$a5o@serpens.rhein.de> <jasonb.828179619@cs.uwa.edu.au> <4jmgta$o88@news.xs4all.nl>
  9. NNTP-Posting-Host: decadence.cs.uwa.oz.au
  10. X-Newsreader: NN version 6.5.0 #3 (NOV)
  11.  
  12. yrozijn@xs4all.nl (Yvon Rozijn) writes:
  13.  
  14. >Jason S Birch (jasonb@cs.uwa.edu.au) wrote:
  15. >:
  16. >: Which would
  17. >: you prefer: MUI apps running the bulk of their code at pri 20 because
  18. >: the programmer didn't know any better, or MUI apps running the bulk of
  19. >: their code at pri 0?
  20.  
  21. >I prefer visual feedback done at priority 20, and application processing
  22. >done at priority 0. 
  23.  
  24. I prefer, in addition, for CPU intensive code to be run at a priority
  25. less than 0. This can usually be nicely isolated anyway (as AWeb has
  26. done for image decoding, etc) and once that is done, using a lower
  27. priority is trivial, and helps other processes -- whether they be a
  28. MUI app, or a simple 'ls' -- no end.
  29.  
  30. >But with MUI it's either all at 20 or all at 0, unless
  31. >the programmer is going into relatively much effort of doing things
  32. >in different subtasks.
  33.  
  34. Well, it's all at 0, none at 20. The question above was a hypothetical
  35. one: would you want the programmer to do extra work to *not* make their
  36. MUI apps run at pri 20, or extra work to *not* make their apps run at
  37. pri 0. Personally, I think it's a lot safer to take the latter option.
  38. The AmigaGuide.datatype shows what can happen otherwise.
  39.  
  40. As for subtasks -- you, yourself, have already put the effort into
  41. doing things in different subtasks, presumeably because it also makes
  42. the programming model *simpler*, correct? You don't want to have to
  43. stop your network transferring to do some image decoding, then a bit of
  44. laying out, then check to see if the user has clicked on a link before
  45. going back to network transferring again. Without using threads this
  46. would be a nightmare to do efficiently on any given CPU. You also want
  47. to respond to user input fairly quickly (even if you know the button
  48. has been refreshed at pri 20) so the whole app feels responsive.
  49. Putting the CPU intensive stuff in a thread at a lower priority than
  50. your event loop does this.
  51.  
  52. >: If the CPU intensive tasks [AWeb] spawns ran at a lower priority, it would
  53. >: be [more responsive].
  54.  
  55. >Interesting idea. I'll keep it in mind.
  56.  
  57. That's all I ask. :-) Well, ok, there are others which I'll include
  58. now in case they've been lost in the other not-so-AWeb-related
  59. postings:
  60.  
  61. When I use the arrow gadgets to move back and forth through pages in
  62. the history, they are not progressively displayed like they were when
  63. being transferred across the network. Big pages can take quite some
  64. seconds to be shown, and until then AWeb blocks user input and doesn't
  65. even allow the operation to be cancelled. Can you make cached pages
  66. appear in the same manner as transferring pages (except, presumeably,
  67. faster)?
  68.  
  69. The behaviour when Executive had changed the priorities of the threads
  70. was curious. The main, event-handling process appears to also do page
  71. layouts, yet that thread was quite clearly getting CPU time (since the
  72. page was updated and "Top" showed it getting the CPU) but did not
  73. respond to any events until after the page was completely finished.
  74. When I set all the threads to run at the same priority, however, it
  75. worked fine (although the response to events was a little sluggish).
  76.  
  77. When I was creating different sized pages earlier to see how long AWeb
  78. took to display them, I simply created a line with 32 characters on it
  79. and kept duplicating it. When I got to around 6k, AWeb's progress bar
  80. at the top would show the page being loaded, but nothing would appear.
  81. (Just 32 characters smaller and AWeb showed it fine.) By putting a
  82. <P>...</P> pair around the 6k of text, and then duplicating that, it
  83. worked fine up until 384k (the largest I tested).
  84.  
  85. Can anything be done about the flickering of form gadget borders when
  86. typing into them?
  87.  
  88. Finally, when is full Java support going to be included. ;-)
  89.  
  90. Otherwise, AWeb is a good browser. Well done.
  91.  
  92. > -<_>- Yvon   : | ==| yrozijn@  : >WWW< xs4all.nl/  : === ) Amiga
  93. >  / \  Rozijn : `---' xs4all.nl :  /|\  ~yrozijn    :     O  4000
  94.  
  95. -- 
  96. Jason S Birch                        ,-_|\ email: jasonb@cs.uwa.edu.au
  97. Department of Computer Science      /     \ Tel (work): +61 9 380 1840
  98. The University of Western Australia *_.-._/ Fax (work): +61 9 380 1089
  99. Nedlands  W. Australia  6907             v  Tel (home): +61 9 386 8630
  100.